'use strict'

module.exports = (app) => {
  const { middleware } = app

  /**
   * 中间件
   */
  app.use(
    middleware.requestLog({
      match: '/',
      ignore: '/',
    })
  ) // 请求日志

  require('./router/backend')(app)
  require('./router/screen')(app)
  require('./router/client')(app)
}
